<br/><br/><br/>
<div class="row">
    <div class="col-md-12 well">
        <h2><kbd>List Wallets</kbd></h2>
        <hr/>
        <?php foreach ($wallets as $item): ?>
            <div>
                <p class="glyphicon glyphicon-tag col-md-2"><span">Wallet<?php echo $item['tb_wallets']['id'] ?>:</span>
                    <span class="text-info"> <?php echo $item['tb_wallets']['name'] ?></p>

                <p class="glyphicon glyphicon-usd col-md-10"><span ">Money: </span><span
                        class="text-danger"><?php echo number_format($item['tb_wallets']['current_money']) . ' VNĐ' ?></span>
                </p>
            </div>
        <?php endforeach; ?>
    </div>
    <?php echo $this->Form->create('Wallet', array('class' => 'form-horizontal', 'inputDefaults' => array('label' => false))); ?>
    <div class="form-group">
        <label class="control-label col-md-3" for="wallet1">Select wallet to send money:</label>

        <div class="col-md-4">
            <?php
            $options = array();
            foreach ($wallets as $item) {
                $options[$item['tb_wallets']['id']] = $item['tb_wallets']['name'];
            }

            echo $this->Form->input('id1', array('class' => 'form-control', 'options' => $options)) ?>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-3" for="wallet2">Select wallet have receive money:</label>

        <div class="col-md-4">
            <?php
            echo $this->Form->input('id2', array('class' => 'form-control', 'options' => $options)) ?>
        </div>
    </div>
    <div class="form-group">
        <label for="money" class=" col-sm-3 control-label">Money:</label>

        <div class="col-sm-4">
            <div class="input-group">
                <input name="data[Wallet][money]" placeholder="Money ..." required="" class="form-control"/>
                <span class="input-group-addon">VNĐ</span>
            </div>
        </div>
    </div>
    <?php echo $this->Form->Submit('Submit',array('class'=>'btn btn-primary btn-sm col-md-1 col-md-offset-3'))?>
</div>
<?php echo $this->Form->end();?>